package type;

import java.util.Date;

public class Rating {
	private User user;
	private Movie movie;
	private int rating;
	private Date date;
	
	public Rating(User user, Movie movie, int rating, Date date){
		this.setUser(user);
		this.setMovie(movie);
		this.setRating(rating);
		this.setDate(date);
	}
	
	@Override
	public String toString() {
		return "rating:" + rating + " date:" + date  +" user:(" + user.getUserID() + ") movie:(" + movie.getMovieID() + ")";
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Movie getMovie() {
		return movie;
	}

	public void setMovie(Movie movie) {
		this.movie = movie;
	}

	public int getRating() {
		return rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
}
